package myky.com.doctorapp.contract

import io.reactivex.Observable
import myky.com.doctorapp.base.BaseEntity
import myky.com.doctorapp.base.BaseView
import myky.com.doctorapp.entity.DepatmentWrapperEntity
import myky.com.doctorapp.entity.DoctorWrapperEntity

interface FindDoctorContract {
    interface Model {

        fun findDepartMent(): Observable<BaseEntity<DepatmentWrapperEntity.Depatment>>

        fun findDoctorList(version:String,customerId:String,size:Int,current:Int,type:String):Observable<BaseEntity<DoctorWrapperEntity.DoctorListEntity>>

    }

    interface View : BaseView<DepatmentWrapperEntity> {

        fun showDepartMentList(departments: MutableList<String>)

        fun showDoctorList(doctoerList: MutableList<DoctorWrapperEntity.DoctorListEntity.DoctorsEntity>)



    }

    interface Presenter {

        //获取科室(二级)
        fun findDepartMent()

        //获取医生列表
        fun findDoctorList(version:String,customerId:String,size:Int,current:Int,type:String)

    }
}
